package com.buba.controller;


import com.buba.pojo.LgMixType;
import com.buba.service.LgMixTypeService;
import com.guli.common.ov.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author MrJia
 * @since 2020-10-27
 */
@RestController
@RequestMapping("/lgMixType")
public class LgMixTypeController {

    @Autowired
    private LgMixTypeService lgMixTypeService;

    @RequestMapping("selectListByPid/{pid}")
    public R selectListByPid(@PathVariable String pid) {
        return R.ok().data("list", lgMixTypeService.selectListByPid(pid));
    }

}

